

/***********************************************************************
 * @file:        xxx.c
 * @author:      guangjieMVP
 * @version:     v1.00.00
 * @date:        2020-xx-xx
 * @github:      https://github.com/guangjieMVP
 * @brief: 
***********************************************************************/

#ifndef _STACK_WITH_CHECK_H_
#define _STACK_WITH_CHECK_H_

#include "stack_validator.h"

/* 继承基类校验器，实现范围校验器类 */
typedef struct _stack_range_check{
    stack_validator_t super;                                  //父类
    int max;
    int min;
}stack_range_check_t;

stack_validator_t *stack_wtih_range_check_init(stack_range_check_t *s, int max, int min);
int stack_with_range_check_deinit(stack_range_check_t *s);

#endif